package com.heiye.blog.ai.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: heiye
 * @date: 2025/11/19 下午6:17
 * @version: v1.0.0
 * @description: 角色名称枚举类
 */
@Getter
@AllArgsConstructor
public enum RoleNameEnum {
    SAYUMI("sayumi"),
    ;

    private final String name;

    public static RoleNameEnum getByName(String name) {
        for (RoleNameEnum value : RoleNameEnum.values()) {
            if (value.name.equals(name)) {
                return value;
            }
        }
        return null;
    }
}
